package com.dhecp.project.hr.service;

import com.dhecp.common.core.domain.AjaxResult;
import com.dhecp.project.common.service.BaseModuleService;
import com.dhecp.project.hr.domain.UserPerformanceRule;

import java.util.List;
import java.util.Map;

/**
 * @description: 员工绩效规则-各岗位绩效考核标准的维护 服务层
 * @author: hlf
 * @date: 2022-05-09 9:15
 */
public interface UserPerformanceRuleService extends BaseModuleService {

    /**
     *@Description: 查询前一单NID、BID
     *@Param: nid 必要参数：当前 单据编码
     *@return: AjaxResult (data.nid 前一单NID， data.bid 前一单BID)
     *@Author: hlf
     *@date: 2022-05-09 9:35
     */
    AjaxResult queryLastNid(Map<String, Object> params) throws Exception;

    /**
     *@Description: 查询后一单NID、BID
     *@Param: nid 必要参数：当前 单据编码
     *@return: AjaxResult (data.nid 后一单NID， data.bid 后一单BID)
     *@Author: hlf
     *@date: 2022-05-09 9:40
     */
    AjaxResult queryNextNid(Map<String, Object> params) throws Exception;

    /**
     *@Description: 查询指定单nid的首记录
     *@Param: nid 必要参数：当前 单据编码
     *@return: com.dhecp.project.hr.domain.UserPerformanceRule
     *@Author: hlf
     *@date: 2022-05-09 9:40
     */
    UserPerformanceRule queryFirstRecord(Map<String, Object> params) throws Exception;

    /**
     *@Description: 查询指定单nid的整单录
     *@Param: nid 必要参数：当前 单据编码
     *@return: java.util.List<com.dhecp.project.hr.domain.UserPerformanceRule>
     *@Author: hlf
     *@date: 2022-05-09 9:41
     */
    List<UserPerformanceRule> queryListByNid(Map<String, Object> params) throws Exception;

    /**
     *@Description: 查询
     *@Param: [params]
     *@return: java.util.List<com.dhecp.project.hr.domain.UserPerformanceRule>
     *@Author: hlf
     *@date: 2022-05-09 9:41
     */
    List<UserPerformanceRule> queryList(Map<String, Object> params) throws Exception;
    List<UserPerformanceRule> queryGroupList(Map<String, Object> params) throws Exception;

    /**
     *@Description: 保存
     *@Param: moduleTable 必要参数：功能唯一标识
     *@Param: infoMap 必要参数：非网格字段（包括头部、底部所有显示和隐藏的字段）
     *@Param: infoItems 必要参数：对应实体类的json格式字符串
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:41
     */
    AjaxResult saveData(Map<String, Object> params);

    /**
     *@Description: 删除
     *@Param: [params]
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:42
     */
    AjaxResult deleteData(Map<String, Object> params);

    /**
     *@Description: 修改删除标志（预留）
     *@Param: infoItems 必要参数：对应实体类的json格式字符串（仅需 guid 和 deleted）
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:42
     */
    AjaxResult updateDeleted(Map<String, Object> params);

    /**
     *@Description: 流转  —— 添加流程任务、修改流程状态及生效标志
     *@Param: infoMap 必要参数：非网格字段（包括头部、底部所有显示和隐藏的字段）
     *@Param: infoItems 必要参数：对应实体类的json格式字符串（仅需 guid）
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:42
     */
    AjaxResult updateFlowGo(Map<String, Object> params);

    /**
     *@Description: 退回  —— 添加流程任务、修改流程状态及生效标志
     *@Param: infoMap 必要参数：非网格字段（包括头部、底部所有显示和隐藏的字段）
     *@Param: infoItems 必要参数：对应实体类的json格式字符串（仅需 guid）
     *@return: com.dhecp.common.core.domain.AjaxResult
     *@Author: hlf
     *@date: 2022-05-09 9:44
     */
    AjaxResult updateFlowBack(Map<String, Object> params);
    
}
